import 'package:flutter/material.dart';

class PageViewbuildPage extends StatefulWidget {
  const PageViewbuildPage({super.key});

  @override
  State<PageViewbuildPage> createState() => _PageViewbuildPageState();
}

class _PageViewbuildPageState extends State<PageViewbuildPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('pageviewbuild 创建build'),
      ),
      body: PageView.builder(
        itemCount: 10,
        scrollDirection: Axis.horizontal,
        itemBuilder: (BuildContext context, int index) {
          return Center(
            child: Text(
              'PageView.builder = ${index}',
              style: Theme.of(context).textTheme.headlineLarge,
            ),
          );
        },
      ),
    );
  }
}
